import {Component, Input, OnInit} from '@angular/core';

@Component({
  selector: 'app-news-content',
  templateUrl: './news-content.component.html',
  styleUrls: ['./news-content.component.less']
})
export class NewsContentComponent implements OnInit {

  @Input()
  index: number;

  order: string;

  constructor() {
  }

  ngOnInit() {
  }

  changeWork(order: string) {
    this.index = 2;
    this.order = order;
  }

}
